/**
* 模板
* @author luguoxiang
* @date 2025-03-03
* 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
*/
import { createApi, request } from '@/soar';

export const basePath = '/system/template';
export const subject = '模板';
const api = createApi(basePath, subject);

export default {
    ...api,
  /**
   * 查询对应分组模板
   * @param groupCode 分组
   */
  listByGroup: (groupCode: string) => request.get(`${basePath}/list-by-group?groupCode=${groupCode}`),
  /**
   * 根据code获取
   * @param code 编码
   */
  getByCode: (code: string) => request.get(`${basePath}/get-by-code?code=${code}`),
  clearCache: () => request.post(`${basePath}/clear-cache`),
};
